# 将python代码用到的数据，转化为java可以读取的数据

import pandas as pd

# filename = "solomon 100.xlsx"
# coordinates = pd.read_excel(filename, sheet_name="Coordinates")
# co = coordinates.values.tolist()
# demand = pd.read_excel(filename, sheet_name="Demand")
# de = demand.values.tolist()
#
# f = open("solomon 100.txt",'w')
# f.writelines('x y demand \n')
# for i in range(len(co)):
#     f.writelines(str(co[i][0])+' '+str(co[i][1])+' '+str(de[i][0])+'\n')

# OD_filename = "OD_Des100.txt"
# with open(OD_filename,"r") as file:
#     od = eval(file.readline())
# ff = open('OD_destination_100.txt','w')
# ff.writelines('id x y \n')
# for i in range(len(od)):
#     ff.writelines(str(od[i]['id'])+' '+str(od[i]['x'])+' '+str(od[i]['y'])+'\n')
#
# print('finished!!!')

x = {}
x[0] = [0,1,2,3,0]
x[1] = [15]
x[2] = [15]
x[4] = [15]
print(4 in x)